Skip to content

Feat/GitHub signin oauth#336

Open
pratyushranjn wants to merge 2 commits into
GitMetricsLab:mainfrom
pratyushranjn:feat/github-signin-oauth
Open

Feat/GitHub signin oauth#336
pratyushranjn wants to merge 2 commits into
GitMetricsLab:mainfrom
pratyushranjn:feat/github-signin-oauth

Conversation

@pratyushranjn
Copy link
Copy Markdown

Related Issue

Closes #29


Description

Implemented GitHub OAuth Sign-In using Passport GitHub Strategy.

Features added:

  • GitHub OAuth authentication
  • User creation/login through GitHub
  • Account linking with existing email
  • Session-based authentication
  • GitHub avatar storage
  • Graceful handling for failed/unconfigured OAuth states

Also updated .env.sample with GitHub OAuth environment variables.


How Has This Been Tested?

  • Tested local signup/login flow
  • Tested GitHub OAuth login flow
  • Verified MongoDB user creation
  • Verified existing account linking
  • Tested repeated GitHub login sessions

Screenshots

Screenshot 2026-05-17 144729 Screenshot 2026-05-17 144706 Screenshot 2026-05-17 144103 Screenshot 2026-05-19 220815

Type of Change

  • Bug fix
  • New feature
  • Code style update
  • Breaking change
  • Documentation update

@netlify
Copy link
Copy Markdown

netlify Bot commented May 19, 2026

Deploy Preview for github-spy ready!

Name Link
🔨 Latest commit fc7af75
🔍 Latest deploy log https://app.netlify.com/projects/github-spy/deploys/6a0c92555abb3800084447cf
😎 Deploy Preview https://deploy-preview-336--github-spy.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pratyushranjn
Copy link
Copy Markdown
Author

Note: The Netlify deploy preview currently shows /undefined/api/auth/github because the preview environment does not have VITE_BACKEND_URL configured.

The GitHub OAuth flow has been tested locally and works correctly with the required environment variables configured.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🚀 Feature: Add "Sign In with GitHub"

1 participant